﻿using System.Collections.Generic;
using DAO;
using DTO;

namespace BUS
{
    public class NgonNguBUS
    {
        public static List<NgonNguDTO> getAll()
        {
            return NgonNguDAO.getAll();
        }

        public static NgonNguDTO getAlongCode(int maNgonNgu)
        {
            return NgonNguDAO.getAlongCode(maNgonNgu);
        }

        public static void Insert(NgonNguDTO _insert)
        {
            NgonNguDAO.Insert(_insert);
        }

        public static void Delete(int maNgonNgu)
        {
            NgonNguDAO.Delete(maNgonNgu);
        }

        public static void Update(NgonNguDTO dto)
        {
            NgonNguDAO.Update(dto);
        }

        public static int getMa(string tenNgonNgu)
        {
            return NgonNguDAO.getMa(tenNgonNgu);
        }
    }
}
